package com.shadow.study.excel;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

@Slf4j
@SpringBootApplication
public class ExcelApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ExcelApp.class, args);
        log.info("ExcelApp started");
        Environment env = run.getEnvironment();
        String port = env.getProperty("server.port");
        String contextPath = env.getProperty("server.servlet.context-path");
        String path = "http://localhost:" + port + contextPath;
        log.info("测试1, 查询: {}", path + "/role/get");
        log.info("测试2, 模糊: {}", path + "/role/like/u");
        log.info("测试3, 分页: {}", path + "/role/page");
    }
}
